package com.sunny.design.factory.factorymode;

import com.sunny.design.factory.ICourse;

/**
 * @author Sunny
 * @date 2019/12/28 16:06
 */
public class FactoryModeTest {
    public static void main(String[] args) {
        ICourseFactory factory = new JavaFactory();
        ICourse java = factory.create();
        java.show();

        factory = new PythonFactory();
        ICourse python = factory.create();
        python.show();
    }
}
